package ex.vo;
public class SensorReading {

    // 传感器 id
    public String sensorId;
    // 时间戳
    public String timeStamp;
    // 温度
    public Double temperature;

    // 状态描述
    public  String lowOrhigt;

    // 状态标识
    public String status;

    public SensorReading() {}
    public  SensorReading(String sensorId,String timeStamp,Double temperature){
        this.sensorId = sensorId;
        this.timeStamp = timeStamp;
        this.temperature = temperature;
    }

    public  SensorReading(String sensorId,Double temperature,String status){
        this.sensorId = sensorId;
        this.temperature = temperature;
        this.status=status;
    }

    public  SensorReading(String sensorId,Double temperature){
        this.sensorId = sensorId;
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "SensorReading{" +
                "sensorId='" + sensorId + '\'' +
                ", timeStamp=" + timeStamp +
                ", temperature=" + temperature +
                ", lowOrhigt=" + lowOrhigt +
                ", status=" + status +
                '}';
    }
}